import { http } from "@/utils/http.js";

// 我的客户数据
export const PlanProduct = (data) => {
  return http.request({
    method: "get",
    url: "/app/requisition/plan/product",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 我的客户数据
export const PlanCreate = (data) => {
  return http.request({
    method: "post",
    url: "/app/requisition/plan/create",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

export const PlanQuery = (data) => {
  return http.request({
    method: "get",
    url: "/app/requisition/plan/query",
    params: {
      ...data,
      // offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

export const PlanStatus = (data) => {
  return http.request({
    method: "get",
    url: "/app/requisition/plan/status",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};
// 我的客户数据
export const PlanCancel = (data) => {
  return http.request({
    method: "post",
    url: "/app/requisition/plan/cancel",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 我的客户数据
export const PlanUpdate = (data) => {
  return http.request({
    method: "post",
    url: "/app/requisition/plan/update",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

export const PlanDetail = (data) => {
  return http.request({
    method: "get",
    url: "/app/requisition/plan/detail",
    params: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};

// 我的客户数据
export const PlanReceive = (data) => {
  return http.request({
    method: "post",
    url: "/app/requisition/plan/receive",
    data: {
      ...data,
      offLoading: true, // 加参数关闭api请求全局加载中提示
    },
  });
};
